package com.sg.dto.biz.bff.common;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

/**
 * @desc BffTargetContCheckItemStateDto
 * @使用场景
 */
@Data
public class BffTargetContCheckItemStateDto implements Serializable {

    /**
     * 状态校验项ID
     */
    @ApiModelProperty("状态校验项ID")
    private String statusCheckItemId;

    /**
     * 检查项标识
     */
    @ApiModelProperty("检查项标识")
    private String checkItemCode;

    /**
     * 检查项名称
     */
    @ApiModelProperty("检查项名称 ")
    private String checkItemName;

    /**
     * 是否已完成 TRUE:是 FALSE:否
     */
    @ApiModelProperty("是否已完成")
    private String isComplete;
    /**
     * 检查项ID
     */
    @ApiModelProperty("检查项ID")
    private String checkItemId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        BffTargetContCheckItemStateDto that = (BffTargetContCheckItemStateDto) o;
        return statusCheckItemId == that.statusCheckItemId && checkItemCode == that.checkItemCode && checkItemName == that.checkItemName && isComplete == that.isComplete && checkItemId == that.checkItemId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), statusCheckItemId, checkItemCode, checkItemName, isComplete, checkItemId);
    }

}
